<html>
<head><meta charset="utf-8"><title>secret git? · t-cargo · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/index.html">t-cargo</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/secret.20git.3F.html">secret git?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="204155642"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/secret%20git%3F/near/204155642" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Gankra <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/secret.20git.3F.html#204155642">(Jul 16 2020 at 23:29)</a>:</h4>
<p>Hey I'm debugging an issue firefox has been having with <code>mach vendor rust</code> on windows, and I noticed that cargo can function even though I ostensibly don't have <code>git</code> installed in my MSYS environment -- what does cargo use here? A private git binary? Does it still use the typical sources for git configurations?</p>



<a name="204155735"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/secret%20git%3F/near/204155735" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/secret.20git.3F.html#204155735">(Jul 16 2020 at 23:30)</a>:</h4>
<p>looks like it uses libgit2: <a href="https://github.com/rust-lang/cargo/blob/master/Cargo.toml#L47">https://github.com/rust-lang/cargo/blob/master/Cargo.toml#L47</a></p>



<a name="204155921"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/secret%20git%3F/near/204155921" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Gankra <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/secret.20git.3F.html#204155921">(Jul 16 2020 at 23:32)</a>:</h4>
<p>I always assumed that shelled out to your system git, not so?</p>



<a name="204156107"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/secret%20git%3F/near/204156107" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Gankra <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/secret.20git.3F.html#204156107">(Jul 16 2020 at 23:34)</a>:</h4>
<p>(issue i'm debugging: <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1647582#c6">https://bugzilla.mozilla.org/show_bug.cgi?id=1647582#c6</a>)</p>



<a name="204156121"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/secret%20git%3F/near/204156121" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/secret.20git.3F.html#204156121">(Jul 16 2020 at 23:34)</a>:</h4>
<p>I thought it was a separate reimplementation of git</p>



<a name="204156169"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/secret%20git%3F/near/204156169" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/secret.20git.3F.html#204156169">(Jul 16 2020 at 23:35)</a>:</h4>
<p><a href="https://libgit2.org/">https://libgit2.org/</a></p>



<a name="204156260"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/secret%20git%3F/near/204156260" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Gankra <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/secret.20git.3F.html#204156260">(Jul 16 2020 at 23:36)</a>:</h4>
<p>it appears you're correct, and yea it seems to support sourcing the usual gitconfig files</p>



<a name="204162163"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/secret%20git%3F/near/204162163" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Gankra <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/secret.20git.3F.html#204162163">(Jul 17 2020 at 01:12)</a>:</h4>
<p>interstingly, libgit2 seems to have a better core.autocrlf value than the git installer itself (it uses false, the installer defaults to true)</p>



<a name="204162175"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/secret%20git%3F/near/204162175" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Gankra <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/secret.20git.3F.html#204162175">(Jul 17 2020 at 01:12)</a>:</h4>
<p>sadly, the rest of the firefox issue doesn't seem git related</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>